home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Graphics / GraphicsWrap / Source / CmdBgcolor.m < prev    next >
Text File  |  1991-09-16  |  631b  |  36 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import "CmdBgcolor.h"
  5. #import "miscutil.h"
  6.  
  7. @implementation CmdBgcolor
  8. - initCmd:(int)r :(int)g :(int)b
  9. {
  10.   [super init];
  11.   color=NXConvertRGBToColor(bytetofloat(r), bytetofloat(g), bytetofloat(b));
  12.   number1=r;
  13.   number2=g;
  14.   number3=b;
  15.   command="bgcolor";
  16.   return self;
  17. }
  18.  
  19. - initCmdColor:(NXColor)aColor
  20. {
  21.   [super init];
  22.   color=aColor;
  23.   number1=floattobyte(NXRedComponent(aColor));
  24.   number2=floattobyte(NXGreenComponent(aColor));
  25.   number3=floattobyte(NXBlueComponent(aColor));
  26.   command="bgcolor";
  27.   return self;
  28. }
  29.  
  30. - doCmd
  31. {
  32.   [theBitmap setBackColor:color];
  33.   return self;
  34. }
  35. @end
  36.